
#ifndef TEXTWIDGET_H
#define TEXTWIDGET_H

#include <BFont>
#include <BImage>
#include <BImage>
#include <BWidget>

using namespace BWE;

class TextWidget : public BWidget
{
	BOBJECT(TextWidget)
public:
	TextWidget(BWidget* parent = 0);
	~TextWidget();

	void setImage(BImage* image);

private:
	virtual void event(const BEvent& event);
	virtual void mousePressEvent(const BMouseEvent& mouseEvent);

private:
	BFontHolder		_font;
	BImageHolder	_image;
};

#endif